    /*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package assignemnt1;

/**
 *
 * @author Hansel-G
 */
public class Car {

    private int xPos;
    private int yPos;
    private boolean line;

    public Car(int x, int y, boolean line) {
        xPos = x;
        yPos = y;
        this.line = line;
    }



    public void setxPos(int xPos) {
        this.xPos = xPos;
    }


    public int getXPos() { return xPos;   }
    public int getYPos() { return yPos;   }
    public void setXPos(int x) { xPos = x; }
    public void setYPos(int y) { yPos = y; }
}
